package com.ashleyleung.jetpack_b_station.utils

import android.content.Context

/**
 * @author lxy
 * @name
 * @class describe
 * @date 2022-06-29
 * Copyright (c)  Guangzhou GCI Science & Technology Co., Ltd.All rights reserved
 */
object SizeUtils {
    fun dip2px(context : Context, dpvalue: Float): Int {
        val scale: Float = context.resources.displayMetrics.density
        return (dpvalue * scale + 0.5f).toInt()

    }
}